﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace House_Control
{
    //This class will deal with everything regarding the pet station in the House.
    class PetStation : Appliance
    {
        //We need this variable for when we call the base class constructor.
        static int applianceType = Appliance.PETSTATION;

        //These variables deal with the stores of the pet station.
        double gramsOfFood;
        double litersOfWater;
        bool streamState;

        //In C#, you use : base() to call the constructor of the base class and in this case the constructor takes applianceType as an argument.
        public PetStation() : base(applianceType)
        {
            gramsOfFood = 100;
            litersOfWater = 100;
        }

        public void dispenseTreat()
        {
            //Call the device to whistle to the pet and drop a treat in the tray.
            gramsOfFood--;
        }

        public void dispenseWater()
        {
            //Call the device to whistle to the pet and add some water to the tray.
            litersOfWater--;
        }

        public void getVideoStream()
        {
            //Call the device and get the video feed from it.
        }

        public void callPet()
        {
            //Call the device to whistle to the pet.
        }

        //Returns amount of water left.
        public double getWater()
        {
            return litersOfWater;
        }

        //Returns amount of food left.
        public double getFood()
        {
            return gramsOfFood;
        }
    }
}
